package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;
import org.springframework.format.annotation.DateTimeFormat;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {
    //统计指定时间内的营业额
    TurnoverReportVO getTurnoverStatistics(LocalDate begin, LocalDate end);
    //用户统计
    UserReportVO getUserStatistics(LocalDate begin, LocalDate end);
    //      统计指定时间内的订单数据
    OrderReportVO getOrdersStatistics(LocalDate begin, LocalDate end);
    //销量排名
    SalesTop10ReportVO gettop10(LocalDate begin, LocalDate end);
    //导出报表
    void exportBusinessData(HttpServletResponse response);
}
